#pragma once

#ifndef _GameComponent_h_
#define _GameComponent_h_

#include <d3dx9.h>

#include "Game.h"

namespace Framework {

class Game;

class GameComponent {
public:
    GameComponent(Game *game);
    virtual ~GameComponent(void);
    bool GetEnabled() const;
    void SetEnabled(bool val);
    Game* GetGame();
    virtual void Initialize();
    virtual void Update(FLOAT timeDelta);
private:
    bool enabled;
    Game* game;
};

}

#endif
